import {defineConfig} from "vite"
import uni from "@dcloudio/vite-plugin-uni";

export default defineConfig({
  plugins: [
    uni()
  ],
  server: {
    host: "localhost", 
    port: 8081,       
    proxy: {
      '/hklearn': {
        target: '',
        changeOrigin : true, // 允许跨域
        secure: false,
        rewrite: path => {
          return path.replace(/^\/hklearn/, '/hklearn')
        }
      },
    },

  }
})
